define(["jquery","bbcare","comm/datatable/datatable","bch/app/specialSchemeRegister/lapseToList.servers"],function($,$bb,$datatable,$servers){
	var lapseToList = {};

	/**
	 * 点击新增按钮，跳转到建档页面
	 */
	var onAddClick = function(){
		var params = $bb.getPageParams();
		var arg = {
			"queueId":params.queueId,
            "schemeId":params.schemeId,
            "title":params.title
        };
        var domId = $(this).attr("id");
        $bb.open(params,domId,"bch_lapseToAdd",arg);
    }

	lapseToList.init = function(){
		var id = $(".layout-bottom table").attr("id");
		$datatable.init({
            "id": id,
            "options": $servers.getOptions()
        });
        $("#addBtn").unbind("click");
        $("#addBtn").click(onAddClick);
	}

	return lapseToList;
});